package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.dao.ClassCourseDao;
import com.cyzy.dao.StudentCourseDao;
import com.cyzy.pojo.Class;
import com.cyzy.pojo.Course;
import com.cyzy.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassMapper extends BaseMapper<Class> {

    Page<ClassCourseDao> selectAllClass(Page<ClassCourseDao> page,
                                        @Param("courseId") Integer courseId,
                                        @Param("studentName") String studentName);

    List<ClassCourseDao> selectClassBycourseName(ClassCourseDao classCourseDao);

    List<Course> selectAllCourse(Course course);



    List<Class> getAllClassBycampusId(Class classs);


    List<ClassCourseDao> selectAllClassStudent(@Param("classId") int classId,@Param("courseId") int courseId);

}
